package com.dhcc.sdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dhcc.core.framework.base.entity.BaseEntity;

/**
 * 质控规则
 *
 * @ClassName: SdcShowPremiseEntity
 * @Description: TODO
 * @author syj
 * @date 2022-09-9 14:24:20
 */
@TableName("t_sdc_show_premise")
public class SdcShowPremiseEntity extends BaseEntity<SdcShowPremiseEntity> {
    private static final long serialVersionUID = 1L;

    //规则代码
    private String expCode;
    //规则描述
    private String ruleDesc;
    //备注
    private String ruleMemo;

    private Long dataSource1;
    private Long dataSource2;

    private Long dataSourceItem1;
    private Long dataSourceItem2;

    private String param1;
    private String param2;

    private String operator1;
    private String operator2;
    //计算类型，如果为时间差，则存放Day、Hour、Minute，字符串比较为String，正常计算则为空
    private String ruleType;

    @TableField(exist = false)
    private String ruleCal;
    //规则取不到值时，默认返回的结果 0:false 1:true
    private Integer defaultValue;

    /**
     * 设置：规则代码
     */
    public void setExpCode(String expCode) {
        this.expCode = expCode;
    }
    /**
     * 获取：规则代码
     */
    public String getExpCode() {
        return expCode;
    }
    /**
     * 设置：规则描述
     */
    public void setRuleDesc(String ruleDesc) {
        this.ruleDesc = ruleDesc;
    }
    /**
     * 获取：规则描述
     */
    public String getRuleDesc() {
        return ruleDesc;
    }
    /**
     * 设置：备注
     */
    public void setRuleMemo(String ruleMemo) {
        this.ruleMemo = ruleMemo;
    }
    /**
     * 获取：备注
     */
    public String getRuleMemo() {
        return ruleMemo;
    }

    public Long getDataSource1() {
        return dataSource1;
    }

    public void setDataSource1(Long dataSource1) {
        this.dataSource1 = dataSource1;
    }

    public Long getDataSource2() {
        return dataSource2;
    }

    public void setDataSource2(Long dataSource2) {
        this.dataSource2 = dataSource2;
    }

    public Long getDataSourceItem1() {
        return dataSourceItem1;
    }

    public void setDataSourceItem1(Long dataSourceItem1) {
        this.dataSourceItem1 = dataSourceItem1;
    }

    public Long getDataSourceItem2() {
        return dataSourceItem2;
    }

    public void setDataSourceItem2(Long dataSourceItem2) {
        this.dataSourceItem2 = dataSourceItem2;
    }

    public String getParam1() {
        return param1;
    }

    public void setParam1(String param1) {
        this.param1 = param1;
    }

    public String getParam2() {
        return param2;
    }

    public void setParam2(String param2) {
        this.param2 = param2;
    }

    public String getOperator1() {
        return operator1;
    }

    public void setOperator1(String operator1) {
        this.operator1 = operator1;
    }

    public String getOperator2() {
        return operator2;
    }

    public void setOperator2(String operator2) {
        this.operator2 = operator2;
    }

    public String getRuleType() {
        return ruleType;
    }

    public void setRuleType(String ruleType) {
        this.ruleType = ruleType;
    }

    public String getRuleCal() {
        return ruleCal;
    }

    public void setRuleCal(String ruleCal) {
        this.ruleCal = ruleCal;
    }

    public Integer getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(Integer defaultValue) {
        this.defaultValue = defaultValue;
    }
}
